var express = require('express');
var router = express.Router();
const itemCtrl = require('../controllers/productItem.controller')
// rest api get/post/put/delete

router.post('/item', itemCtrl.create);
router.get('/item/:id', itemCtrl.getData);
router.put('/item/:id', itemCtrl.update);
router.delete('/item/:id', itemCtrl.remove);
router.post('/itemlist', itemCtrl.list);
router.post('/item/remove', itemCtrl.removeData);


module.exports = router;
